package cn.wj.school.cloud.dto;

import lombok.Data;

import java.util.List;

/**
 * @Author: yueding
 * @Description:
 * @Date: Created in 18:26 2018/5/12
 * @Modified By:
 * Copyright(c) cai-inc.com
 */
@Data
public class PageResponse<T>{

    /**
     * 总条数
     */
    private long total = 0L;
    /**
     * 返回结果集
     */
    private List<T> data;

    public PageResponse(long total, List<T> data) {
        this.total = total;
        this.data = data;
    }

    public PageResponse(List<T> data) {
        this.data = data;
    }
}